package com.itheima.service;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface FileUpDownService {

    /**
     * 上传文件
     *
     * @param agreement
     * @param netInput
     * @param netOutput
     * @return void
     * @author xj
     * @create 2024/12/12
     **/
    void uploadFile(String agreement, InputStream netInput, OutputStream netOutput) throws IOException;

    /**
     * 下载文件
     *
     * @param agreement
     * @param netInput
     * @param netOutput
     * @return void
     * @author xj
     * @create 2024/12/12
     **/
    void downloadFile(String agreement, InputStream netInput, OutputStream netOutput) throws IOException;

    /**
     * 扫描目录
     *
     * @param agreement
     * @param netInput
     * @param netOutput
     * @return void
     * @author xj
     * @create 2024/12/12
     **/
    void scanDirectory(String agreement, InputStream netInput, OutputStream netOutput) throws IOException;
}
